package com.session01;

public class Main {
    public static void main(String[] args) {
        Food food1 = new Food("肉罐头", 20, "猫粮");
        Food food2 = new Food("干粮", 10, "猫粮");
        Food food3 = new Food("肉罐头", 30, "狗粮");
        Food food4 = new Food("干粮", 20, "狗粮");

        Cat cat1 = new Cat("咪咪", ColorEnum.WHITE, "英短", true, false, GenderEnum.MALE, "123456789");
        Feeder feeder = new Feeder();
        double price = feeder.feedAnimal(cat1, food1, 2);
        feeder.playAnimal(cat1);
        String msg = cat1.getName() + cat1.getMasterPhone() + "服务价格" + price;
        System.out.println(msg);
        System.out.println("今天喂了一只叫" + cat1.getName() + cat1.getColor().getColorDescription() + cat1.getKind());
        Dog dog1 = new Dog("豆豆", ColorEnum.BLACK, "泰迪", true, false, GenderEnum.FMEALE, "123456789");
        double price1 = feeder.feedAnimal(dog1, food4, 1);
        double price2 = feeder.workAnimal(dog1);

    }
}

